package com.mall.order.dal.persistence;

import com.mall.commons.tool.tkmapper.TkMapper;
import com.mall.order.dal.entitys.Order;
import com.mall.order.dto.OrderDetailById;
import com.mall.order.dto.OrderDetailInfo;
import com.mall.order.dto.OrderItemDto;
import com.mall.order.dto.OrderShippingDto;

import java.util.List;

public interface OrderMapper extends TkMapper<Order> {
    Long countAll();
    OrderDetailById selectUserByOrderId(String orderId);

    OrderDetailById selectAddressByOrderId(String orderId);

    List<OrderDetailInfo> selectOrderByUserId(Long userId);

    List<OrderItemDto> selectOrderItemByOrderId(String orderId);

    OrderShippingDto selectOrderShippingByOrderId(String orderId);
}